cody - HTMLify profile

cody
4270 Files
633443 Views
Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/206 - Random Gradient Generator
//getting the code of the gradient
document.getElementById("add").onclick=()=>{
document.getElementById("code").style.display="flex";
document.getElementById("add").style.display="none";
}
//going back to the preview
document.getElementById("code-ic1").onclick=()=>{
document.getElementById("code").style.display="none";
document.getElementById("add").onclick=()=>{
document.getElementById("code").style.display="flex";
document.getElementById("add").style.display="none";
}
//going back to the preview
document.getElementById("code-ic1").onclick=()=>{
document.getElementById("code").style.display="none";
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Dancing+Script&family=Exo&family=Fira+Sans:wght@300&family=Lato&family=Lobster&family=Playfair+Display&family=Quicksand&display=swap');
*{
font-family:Quicksand;
}
#body{
/* background-image: linear-gradient(45deg,rgb(66,95,6),rgb(97,177,196));
*{
font-family:Quicksand;
}
#body{
/* background-image: linear-gradient(45deg,rgb(66,95,6),rgb(97,177,196));
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Random gradient generator</title>
<link rel="stylesheet" href="style.css">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Random gradient generator</title>
<link rel="stylesheet" href="style.css">